package com.fnzn.entranceGuard.feign;

import com.fnzn.entranceGuard.entity.User;
import com.fnzn.entranceGuard.util.ResponseUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @author lengleng
 * @date 2017/10/31
 * 用户服务的fallback
 */
@Component
public class ApiTokenFallbackImpl implements ApiToken {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public ResponseUtil getUserToken(User user){
        logger.error("调用{}异常:{}", "getUserToken", user);
        return null;
    }

    @Override
    public ResponseUtil refreshUserToken(String token) {
        logger.error("调用{}异常:{}", "refreshUserToken", token);
        return null;
    }


}
